package com.glory.cqaospda.bean;

import com.glory.cqaospda.base.Constant;

import java.io.Serializable;
import java.util.UUID;


public class HeaderBean implements Serializable {

    private String TRANSACTIONID; //请求唯一代码
    private String MESSAGENAME;//请求方法名
    private String machinename;//请求当前用户
    private String EVENTTIME;
    private String UserName;
    private String OPID;
    public HeaderBean(){

    }
    public HeaderBean(String messageName){
        this.MESSAGENAME = messageName;
        this.EVENTTIME = String.valueOf(System.currentTimeMillis());
        this.TRANSACTIONID= UUID.randomUUID().toString();
        this.machinename = "PDA";
        this.UserName = Constant.Companion.getUserName();
        this.OPID = "";
    }

    public String getTRANSACTIONID() {
        return TRANSACTIONID;
    }

    public String getMESSAGENAME() {
        return MESSAGENAME;
    }

    public String getMACHINENAME() {
        return machinename;
    }

    public String getEVENTTIME() {
        return EVENTTIME;
    }

    public String getUserName() {
        return UserName;
    }

    public String getOPID() {
        return OPID;
    }

    public void setTRANSACTIONID(String TRANSACTIONID) {
        this.TRANSACTIONID = TRANSACTIONID;
    }

    public void setMESSAGENAME(String MESSAGENAME) {
        this.MESSAGENAME = MESSAGENAME;
    }

    public void setMACHINENAME(String MACHINENAME) {
        this.machinename = MACHINENAME;
    }

    public void setEVENTTIME(String EVENTTIME) {
        this.EVENTTIME = EVENTTIME;
    }

    public void setUserName(String userName) {
        UserName = userName;
    }

    public void setOPID(String OPID) {
        this.OPID = OPID;
    }
}
